package com.wnhz.work.jy.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ListView;
import android.widget.TextView;

import com.wnhz.work.jy.BaseActivity;
import com.wnhz.work.jy.R;
import com.wnhz.work.jy.adapter.InformAdapter;
import com.wnhz.work.jy.bean.InformBean;

import java.util.ArrayList;
import java.util.List;

/**
 * -----通知
 */
public class InformActivity extends BaseActivity implements View.OnClickListener {
    private TextView title;
    private ListView lv_inform;
    private InformAdapter mAdapter;

    private List<InformBean> informList = new ArrayList<>();


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_inform);

        initView();
    }

    private void initView() {
        title = (TextView) findViewById(R.id.view_main_middle_title);
        title.setText("通知");
        findViewById(R.id.btn_main_left).setOnClickListener(this);

        lv_inform = (ListView) findViewById(R.id.lv_inform);

        mAdapter = new InformAdapter(InformActivity.this, informList);
        lv_inform.setAdapter(mAdapter);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_main_left:
                finish();
                break;

            default:
                break;
        }
    }
}
